import { http } from "@/composables/http";

// 获取文章列表
export const getArticleList = async (params:{page:number,pageSize:number,cateId:number} = {page:1,pageSize:10,cateId:0}) => {
    return await http({
        url:`/api/article/list?page=2&pageSize=20&cateId=0`
    })
}

// 获取文章详情
export const getArticleDetail = async (articleId:number) => {
    return await http({
        url:`/api/article/${articleId}`
    })
}